From 43f7fb8354fd6a3c7a3d9d0bd245d6006fb74e3a Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Sun, 24 Oct 2010 00:04:34 +0200 Subject: [PATCH] GtkThemingEngine: Clear the background for .background class --- gtk/gtkthemingengine.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gtk/gtkthemingengine.c b/gtk/gtkthemingengine.c index b80592bb89..dba82ce522 100644 --- a/gtk/gtkthemingengine.c +++ b/gtk/gtkthemingengine.c @@ -1278,6 +1278,13 @@ gtk_theming_engine_render_background (GtkThemingEngine *engine, SIDE_ALL, junction); cairo_clip (cr); + if (gtk_theming_engine_has_class (engine, "background")) + { + cairo_set_source_rgba (cr, 1.0, 1.0, 1.0, 0.0); /* transparent */ + cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE); + cairo_paint (cr); + } + cairo_translate (cr, x, y); cairo_scale (cr, width, height); -- 2.30.2